﻿using System.Globalization;

namespace System;

public static class DecimalExtension
{
    public static Decimal ToPointAwayFromZero(this decimal val) => Math.Round(val, 2, MidpointRounding.AwayFromZero);

    public static Decimal TwoNumbers(this decimal val) => ((int)(val * 100m)) / 100m;
}